function banner(jiangeshijian,yunxingshijian) {
	var nowimg = 0;	//正在显示的图片编号

	var dingshiqi = setInterval(youanniuyewu,jiangeshijian);

	//鼠标进入，停止定时器
	$(".banner").mouseenter(
		function(){
			clearInterval(dingshiqi);
		}
	);

	//鼠标离开，打开定时器
	$(".banner").mouseleave(
		function(){
			dingshiqi = setInterval(youanniuyewu,jiangeshijian);
		}
	);


	//右按钮
	$(".rightbut").click(youanniuyewu);
	function youanniuyewu(){
		if($(".tuul li").is(":animated") == false){
			//让正在显示的图片淡出
			$(".tuul li").eq(nowimg).animate({"opacity":0},yunxingshijian);
			//改变信号量
			if(nowimg < $(".tuul li").length - 1){
				nowimg = nowimg + 1;
			}else{
				nowimg = 0;
			}
			//让新的信号量这个图图，淡入
			$(".tuul li").eq(nowimg).animate({"opacity":1},yunxingshijian);
			//小圆点
			$(".xiaoyuandian li").eq(nowimg).addClass("cur").siblings().removeClass("cur");
		}
	}

	$(".leftbut").click(
		function(){
			if($(".tuul li").is(":animated") == false){
				//让正在显示的图片淡出
				$(".tuul li").eq(nowimg).animate({"opacity":0},yunxingshijian);
				//改变信号量
				if(nowimg > 0){
					nowimg = nowimg - 1;
				}else{
					nowimg = $(".tuul li").length - 1;
				}
				//让新的信号量这个图图，淡入
				$(".tuul li").eq(nowimg).animate({"opacity":1},yunxingshijian);
				//小圆点
				$(".xiaoyuandian li").eq(nowimg).addClass("cur").siblings().removeClass("cur");
			}
		}
	);


	$(".xiaoyuandian li").mouseenter(
		function(){
			if($(".tuul li").is(":animated") == false){
				//让正在显示的图片淡出
				$(".tuul li").eq(nowimg).animate({"opacity":0},yunxingshijian);
				nowimg = $(this).index();
				//让新的信号量这个图图，淡入
				$(".tuul li").eq(nowimg).animate({"opacity":1},yunxingshijian);
				//小圆点
				$(this).addClass("cur").siblings().removeClass("cur");
			}
		}
	);
}